﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;
namespace Sealight.Core.Domain
{
   public class ContentCategoryEntity
    {
       public virtual Guid ContentCategoryID { get; set; }
       public virtual string Name { get; set; }
       public virtual string Code { get; set; }
       public virtual string Description { get; set; }
       public virtual LanguageEntity Language { get; set; }

       public virtual content_category ToDataAdapter()
       {
           content_category entity = new content_category
           {
               id = this.ContentCategoryID,
               description = this.Description,
               name = this.Name,
               code = this.Code            
               
           };

           if (this.Language != null)
               entity.language = this.Language.ToDataAdapter();

           return entity;
       }
    }
}
